Skip to content

feat: add unknown severity handling to DockerfileAnnotator (TC-4728)#260

Merged
ruromero merged 1 commit into
redhat-developer:mainfrom
a-oren:TC-4728
Jun 16, 2026
Merged

feat: add unknown severity handling to DockerfileAnnotator (TC-4728)#260
ruromero merged 1 commit into
redhat-developer:mainfrom
a-oren:TC-4728

Conversation

@a-oren

@a-oren a-oren commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add UNKNOWN branch to getSeverity() severity cascade in DockerfileAnnotator, ranked below LOW
  • Bump trustify-da-api-spec from 2.0.8 to 2.0.9 for the new UNKNOWN enum value and SourceSummary.getUnknown() field
  • Add comprehensive tests for the full severity cascade logic (critical, high, medium, low, unknown, none, null)

Implements TC-4728

Test plan

  • testGetSeverityUnknown — verifies UNKNOWN returned when only unknown-severity vulns exist
  • testGetSeverityCritical/High/Medium/Low — regression tests for existing cascade
  • testGetSeverityNone/NullSummary/NullCounts — edge cases
  • ./gradlew build passes

🤖 Generated with Claude Code

Add UNKNOWN branch to getSeverity() cascade, ranked below LOW.
Bump trustify-da-api-spec from 2.0.8 to 2.0.9 for the new UNKNOWN
enum value. Add comprehensive tests for severity cascade logic.

Implements TC-4728

Assisted-by: Claude Code
@sonarqubecloud

Copy link
Copy Markdown

@ruromero
ruromero merged commit ce32ebc into redhat-developer:main Jun 16, 2026
7 checks passed
@a-oren
a-oren deleted the TC-4728 branch June 16, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants